﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TimeProject.Engine.DbModels
{
    [Table("Organization")]
    public partial class Organization : EntityBase
    {
        /// <summary>
        /// The organization code.
        /// </summary>
        [Required]
        [MinLength(3)]
        [MaxLength(256)]
        public string Code { get; set; }

        /// <summary>
        /// The organization's full name.
        /// </summary>
        [Required]
        [MaxLength(256)]
        public string FullName { get; set; }

        /// <summary>
        /// The description text.
        /// </summary>
        [MaxLength(256)]
        public string Description { get; set; }
    }
}
